package com.ikun.common.validate.anno;

import com.ikun.common.validate.constant.RegularPatternType;
import com.ikun.common.validate.group.ValidatorGroup;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//自定义正则校验
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Regular {
    //提示消息
    String message();

    //正则校验
    RegularPatternType pattern();

    //分组
    Class<?extends ValidatorGroup>[] group() default {};
}

